<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">

    <style>
        .form-control {
            margin-bottom: 8px;
        }

        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .radio-inline {
            line-height: 5px;
        }
        .dropdown-menu.inner {
            background-color: #1ab394;
            color: white;
        }
        .dropdown-menu.open {
            border-radius: 5px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="text-align: left;line-height: 34px">模板名称</label>
                        <div class="col-sm-6">
                            <input type="text" id="title" class="form-control" name="name" placeholder="请输入模板名称">
                        </div>
                        <label class="col-sm-2 control-label" style="text-align: left;line-height: 34px">排序</label>
                        <div class="col-sm-2">
                            <input type="number" class="form-control" name="sort" placeholder="请输入排序">
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="col-sm-2 control-label" style="text-align: left;line-height: 34px">字体颜色（#ffffff）</label>
                        <div class="col-sm-2 form-group">
                            <div class="input-group colorpicker-demo1">
                                <span class="input-group-addon"><i></i></span>
                                <input class="form-control" type="text" name="fontColor" id="fontColor"
                                       placeholder="请选择字体颜色">
                            </div>
                        </div>
                        <label class="col-sm-2 control-label" style="text-align: left;line-height: 34px">小程序码颜色（#ffffff）</label>
                        <div class="col-sm-2 form-group">
                            <div class="input-group colorpicker-demo2">
                                <span class="input-group-addon"><i></i></span>
                                <input class="form-control" type="text" name="miniappCodeColor"
                                       placeholder="请选择小程序码颜色">
                            </div>
                        </div>
                        <label class="col-sm-2 control-label" style="text-align: left;line-height: 34px">小程序码位置</label>
                        <div class="col-sm-2 form-group">
                            <select class="form-control" name="miniappCodePosition">
                                <option value="0" selected>左边</option>
                                <option value="1" >右边</option>
                            </select>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">描述内容</label>
                        <div class="col-sm-10">
                            <textarea name="description" class="form-control" rows="3" maxlength="999"
                                      placeholder="请输入内容">{{desc}}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4" style="margin-top: 20px">
                            <label class="form-inline">海报图片<span style="color: red">尺寸：【】</span></label>
                            <input id="posterImg" type="hidden" name="posterImg">
                            <input id="oldPosterImg" type="hidden" name="oldPosterImg">
                            <div class="file-loading">
                                <input id="fileUploadBtn1" type="file" name="file">
                            </div>
                        </div>
                        <div class="col-sm-4" style="margin-top: 20px">
                            <label class="form-inline">名片正面图片<span style="color: red">尺寸：【】</span></label>
                            <input id="cardPositiveImg" type="hidden" name="cardPositiveImg">
                            <input id="oldCardPositiveImg" type="hidden" name="oldCardPositiveImg">
                            <div class="file-loading">
                                <input id="fileUploadBtn2" type="file" name="file">
                            </div>
                        </div>
                        <div class="col-sm-4" style="margin-top: 20px">
                            <label class="form-inline">名片反面图片<span style="color: red">尺寸：【】</span></label>
                            <input id="cardNegativeImg" type="hidden" name="cardNegativeImg">
                            <input id="oldCardNegativeImg" type="hidden" name="oldCardNegativeImg">
                            <div class="file-loading">
                                <input id="fileUploadBtn3" type="file" name="file">
                            </div>
                        </div>
                    </div>
                </div>

                <div style="text-align: center;clear: both;padding-top: 20px">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)">保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/js/bootstrap-select.min.js"></script>
<script src="../../../../js/content-manage/site/cardPoster/edit.js"></script>
</body>
</html>
